﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Payton.WP7.Infrastructure.Cache
{
    public class Cache : Payton.WP7.Infrastructure.Cache.ICache
    {
        CacheLoadType _loadtype;

        private string cacheName;

        public string CacheName
        {
            get { return cacheName; }
            set { cacheName = value; }
        }

        public Cache(CacheLoadType loadtype)
        {
            _loadtype = loadtype;
            if (_loadtype == CacheLoadType.ImmediatelyAsync)
            {
                Load(true);
            }
            else if (_loadtype == CacheLoadType.ImmediatelySync)
            {
                Load(false);
            }
            else if (_loadtype == CacheLoadType.LazyLoad)
            {
                //TODO
            }
        }

        private void Load(bool isasync)
        {
            throw new NotImplementedException();
        }

        public void Put(string key,object o)
        {
 
        }

        public object Get(string key)
        {
            return null;
        }
    }
}
